package com.itrus.spring.inject.configuration;

import com.itrus.spring.inject.service.DeptService;
import com.itrus.spring.inject.service.TestServiceImpl;
import org.springframework.context.annotation.Bean;

import java.util.Collections;
import java.util.List;

/**
 * @author peigen
 * @since 2024/10/8
 */
@org.springframework.context.annotation.Configuration
public class Configuration {

    @Bean
    public List<DeptService> deptList() {
        return Collections.singletonList(new TestServiceImpl());
    }
}
